package loginDemo;

import javafx.fxml.FXML;
import javafx.scene.text.Text;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleGroup;
import javafx.scene.control.Label;
import javafx.scene.control.RadioButton;
import javafx.scene.control.PasswordField;

// 该类可以没有(但没有就不能获得fxml文件的引用)
public class Controller {
	
	@FXML										
	private Text welcome;		// 标记一定要有
	
	@FXML
	private Label userName;
	
	@FXML
	private Label password;
	
	@FXML
	private TextField tf;
	
	@FXML
	private PasswordField pf;
	
	@FXML
	private Button login;
	
	@FXML
	private ToggleGroup toggleGroup;
	
	@FXML
	private RadioButton easy;
	
	@FXML
	private RadioButton hard;
	
	@FXML
	private void action() {
		System.out.println("login成功");
	}
}
